﻿
using System;
using UnityEngine;

namespace DL.Tools
{
    /// <summary>
    /// 该对象池进一步派生，专用于 MonoBehaviour组件
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public abstract class UnityGameObjectObjectPool<T> : ObjectPool<T> where T : MonoBehaviour
    {
        public UnityGameObjectObjectPool(Func<T> preLoadFunc, Action<T> getAction, Action<T> returnAction,
            Action<T> destroyAction, bool collectionCheck, int preloadCount, int maxSize) : base(preLoadFunc, getAction,
            returnAction, destroyAction, collectionCheck, preloadCount, maxSize
        )
        {
        }
    }
}